import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Phone from '../views/Phone.vue'
import Cart from '../views/Cart.vue'
Vue.use(VueRouter)

const routes = [{
    path: '/phone',
    name: 'phone',
    component: Phone
  },
  {
    path: '/cart',
    name: 'cart',
    component: Cart
  }
]

const router = new VueRouter({
  routes
})

export default router
